package com.yznote.cloudesk.logs.mapper;

import com.yznote.cloudesk.common.pojo.YLogs;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.List;

@Component
@Mapper
public interface YLogsMapper {
    int insertLogs(YLogs yLogs);

    int getCountInSec(String moduleName,String methodName, LocalDateTime requestTime);

    int getCountBetweenSec(String moduleName,String methodName, LocalDateTime requestTimeStart,LocalDateTime requestTimeEnd);

    List<YLogs> getLogs(Integer start,Integer num);

    Integer getCountBetween(LocalDateTime requestTimeBegin, LocalDateTime requestTimeEnd);

    Integer getCountInSec111(LocalDateTime requestTime);
    Integer getCount();
}
